package com.sky.mapper;

import com.sky.model.dto.AdminDTO;
import com.sky.model.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {

    /**
     * 管理员登录
     * @param username
     * @param password
     * @return
     */
    @Select("select * from admin where username = #{username} and password = #{password}")
    Admin findUser(String username, String password);

    /**
     * 修改个人信息
     * @param adminDTO
     */
    void update(AdminDTO adminDTO);
}
